package org.kms.pojo;

import java.sql.Date;
import java.util.List;

public class Selectedcharges {
    private int cn;
    private Integer pid;
    private Integer cIid;
    private String dYesrs;
    private String eYears;
    private String cns;
    private Child child;
    private Fxinfo fxinfo;
    private List<Child> childs;
    private List<Fxinfo> fxinfos;
    private List<String> fxName;
    private double Sumprice;

    public double getSumprice() {
        return Sumprice;
    }

    public void setSumprice(double sumprice) {
        Sumprice = sumprice;
    }

    public List<String> getFxName() {
        return fxName;
    }

    public void setFxName(List<String> fxName) {
        this.fxName = fxName;
    }

    public List<Fxinfo> getFxinfos() {
        return fxinfos;
    }

    public void setFxinfos(List<Fxinfo> fxinfos) {
        this.fxinfos = fxinfos;
    }

    public List<Child> getChilds() {
        return childs;
    }

    public void setChilds(List<Child> childs) {
        this.childs = childs;
    }

    public Child getChild() {
        return child;
    }

    public void setChild(Child child) {
        this.child = child;
    }

    public Fxinfo getFxinfo() {
        return fxinfo;
    }

    public void setFxinfo(Fxinfo fxinfo) {
        this.fxinfo = fxinfo;
    }

    public int getCn() {
        return cn;
    }

    public void setCn(int cn) {
        this.cn = cn;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getcIid() {
        return cIid;
    }

    public void setcIid(Integer cIid) {
        this.cIid = cIid;
    }

    public String getdYesrs() {
        return dYesrs;
    }

    public void setdYesrs(String dYesrs) {
        this.dYesrs = dYesrs;
    }

    public String geteYears() {
        return eYears;
    }

    public void seteYears(String eYears) {
        this.eYears = eYears;
    }

    public String getCns() {
        return cns;
    }

    public void setCns(String cns) {
        this.cns = cns;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Selectedcharges that = (Selectedcharges) o;

        if (cn != that.cn) return false;
        if (pid != null ? !pid.equals(that.pid) : that.pid != null) return false;
        if (cIid != null ? !cIid.equals(that.cIid) : that.cIid != null) return false;
        if (dYesrs != null ? !dYesrs.equals(that.dYesrs) : that.dYesrs != null) return false;
        if (eYears != null ? !eYears.equals(that.eYears) : that.eYears != null) return false;
        if (cns != null ? !cns.equals(that.cns) : that.cns != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = cn;
        result = 31 * result + (pid != null ? pid.hashCode() : 0);
        result = 31 * result + (cIid != null ? cIid.hashCode() : 0);
        result = 31 * result + (dYesrs != null ? dYesrs.hashCode() : 0);
        result = 31 * result + (eYears != null ? eYears.hashCode() : 0);
        result = 31 * result + (cns != null ? cns.hashCode() : 0);
        return result;
    }
}
